//@charset "utf-8"

try {
    var isIE=!!window.ActiveXObject;
    var isIE6=isIE&&!window.XMLHttpRequest;
    var utils = new ThsUtil();
    await utils.registerEventNotify({"onEvent":onEvent,"type":512});
    await utils.registerCfgNotify({"callback": function(s){
        if(reloadDelN == false){
            if(isIE6){
                var UrlCurrent = window.location.href.split('?');
                var urls = UrlCurrent[0] + '?TabClicks=0';
                window.location.href = urls;
                window.location.reload();                
            }else{
                var UrlCurrent = window.location.href.split('?');
                var urls = UrlCurrent[0] + '?TabClicks=0';
                window.location.href = urls;
            }
        }else{
            reloadDelN = false;
        }
    }
    });
    
    await utils.registerAlertPush({"callback": function(code,result){
        var result = eval('data=' + result);
        var readW = $("#proResult i").html();
        var readWs;
            if(readW == ''){
                readWs = 0;
            }else{
                readWs = readW;
                $("#proTableResult table tr").eq(0).addClass("tr-click");
            }
            if(result['read'] == 0){   
                readWs ++ ;
            }
            if(readWs > 99){
                $("#proResult i").show();
                $("#proResult i").html('99');
            }else if(readWs == 0){
                $("#proResult i").hide();
            }else{
                NewNumber = 1;
                $("#proResult i").show();
                $("#proResult i").html(readWs);
            }

        }
    });
} catch (exp) {
    alert(exp.message);
}